package main.person

import main.models.AbstractLiving

case class Person (fullName: String, age: Int, emotion: Emotion = Emotion.Calmness) extends AbstractLiving("Person", age) {
  require(age >= 0, "Age must be positive")
  require(fullName.nonEmpty, "Name can't be empty")

  def setEmotion(emotion: Emotion): Person = copy(emotion = emotion)
}

